package com.jgp.sys.props;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Map;


/**
 * 项目   parent
 * 作者   loufei
 * 时间   2018/4/27
 */
@Component
@ConfigurationProperties("jgp.micro")
public class MicroConfigPropBean {
    
    private Boolean enabled = true;
    
    private Boolean center;
    
    private Boolean ssl = false;
    
    private Test test;
    
    public Boolean getSsl() {
        return ssl;
    }
    
    public void setSsl(Boolean ssl) {
        this.ssl = ssl;
    }
    
    public Test getTest() {
        return test;
    }
    
    public void setTest(Test test) {
        this.test = test;
    }
    
    public Boolean getEnabled() {
        return enabled;
    }
    
    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }
    
    public Boolean getCenter() {
        return center;
    }
    
    public void setCenter(Boolean center) {
        this.center = center;
    }
    
    static public class Test{
        
        private String profile = "dev";
        
        private Boolean enabled = false;
        
        private Map<String,String> relTarget;
    
        public String getProfile() {
            return profile;
        }
    
        public void setProfile(String profile) {
            this.profile = profile;
        }
    
        public Map<String, String> getRelTarget() {
            return relTarget;
        }
    
        public void setRelTarget(Map<String, String> relTarget) {
            this.relTarget = relTarget;
        }
    
        public Boolean getEnabled() {
            return enabled;
        }
    
        public void setEnabled(Boolean enabled) {
            this.enabled = enabled;
        }
    }
    
}
